import { defineStore } from 'pinia'

export const useUserStore = defineStore<string, {canPublish : boolean; vip : 0|1; withdrawalInfoStatus : boolean; id:number; avatar:string, nickname:string, isAuthPhone:boolean, payscore:boolean}>('user', {
    state() {
        return {
            vip : 0,
            id : 0,
            avatar : '',
            nickname : '',
            isAuthPhone : false,
            payscore : false,
            withdrawalInfoStatus : false,
            canPublish : false
        }
    }
})